package com.cuixk.basic.quartz.manager.job;

import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.stereotype.Service;

/**
 * Create By Cuixk
 * 2019/6/21 14:51
 */
@Service
@Slf4j
public class MyJob implements Job {

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {

        log.info("【定时任务执行,参数是:{}】", jobExecutionContext.getJobDetail().getKey());
    }

}
